package com.testjpa.web;

import com.testjpa.service.JpaEntityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 作者: LCG
 * 日期: 2020/5/25 16:35
 * 描述:
 */
@RestController
public class TestJpACpntroller {

    @Autowired
    private JpaEntityService jpaEntityService;


    @RequestMapping("testList")
    public Object getLIst(){
        Map<String, Object> map = jpaEntityService.toPage("王五", "2019-11-01 15:21:47");
        return map;
    }

}
